package com.freejava.test_freemarker.service;

import com.freejava.test_freemarker.pojo.Country;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class CountryService {

    public List<Country> findCountryById(Long id) {
        List<Country> countryList = new ArrayList<Country>();
        countryList.add(new Country(2001, "中国", "China", "Asia", 14));
        countryList.add(new Country(2002, "美国", "America", "America",(float) 3.4));
        countryList.add(new Country(2003, "印度", "India", "Asia", 14));

        return countryList;
    }
}
